package com.itheima.demo03functionalinterface;

import java.util.function.Predicate;

public class Demo07Predicate {
    public static void main(String[] args) {
        isLongName(s->s.length()>3);
    }
    public static void isLongName(Predicate<String> predicate){
        System.out.println("aa");
        boolean isLong = predicate.test("迪丽热巴");
        System.out.println("是否是长名字 = " + isLong);

    }
}
